package cn.rengy.web.framework.sys.login.web;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.rengy.lang.ResultEntity;


@Controller
@RequestMapping(value = "/security")
public class MainController{
	private static Logger logger = LoggerFactory.getLogger(MainController.class);
	@RequestMapping(value="main",method = RequestMethod.GET)
	public String main(){
		logger.info("/authenticated/main GET");
		return "/view/sys/main/main.html";
	}
	@RequestMapping(value="/checkLogin",method = RequestMethod.POST)
	@ResponseBody
	public ResultEntity<?> checkLogin(){
		return ResultEntity.ok();
	}
	
}
